﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SqlSugar;

namespace UserModels
{
    /// <summary>
    /// 菜单信息表
    /// </summary>
    [Table("MenuInfoModel")]
    public class MenuInfoModel : AuditModel
    {
        /// <summary>
        /// 菜单编号
        /// </summary>
        [Key]
        [SugarColumn(IsPrimaryKey =true,IsIdentity =true)]
        public int MenuId { get; set; }
        /// <summary>
        /// 菜单名称
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public string?MenuName { get; set; }
        /// <summary>
        /// 菜单路径
        /// </summary>
        [SugarColumn(IsNullable = false)]
        public string?MenuUrl { get; set; }
        /// <summary>
        /// 父级编号
        /// </summary>
        [SugarColumn(IsNullable = false)]
        public int  ParentId { get; set; }
    }
}
